package com.huawei.esdk.tp.cxf.enumgen;

public abstract class VideoProtocolMapping
{
    
    public final static int AUTO = 0;
    
    public final static int H_261 = 1;
    
    public final static int H_263 = 2;
    
    public final static int H_264 = 3;
    
    public final static int H_264_HP = 4;
    
    public final static int MIN = 0;
    
    public final static int MAX = 4;
    
    public static Integer enum2Int(VideoProtocol videoFormat)
    {
        if (null == videoFormat)
        {
            return null;
        }
        switch (videoFormat)
        {
            case AUTO:
            {
                return AUTO;
            }
            case H_261:
            {
                return H_261;
            }
            case H_263:
            {
                return H_263;
            }
            case H_264:
            {
                return H_264;
            }
            case H_264_HP:
            {
                return H_264_HP;
            }
            default:
            {
                return null;
            }
        }
    }
    
    public static VideoProtocol int2Enum(Integer num)
    {
        if (null == num)
        {
            return null;
        }
        switch (num)
        {
            case AUTO:
            {
                return VideoProtocol.AUTO;
            }
            case H_261:
            {
                return VideoProtocol.H_261;
            }
            case H_263:
            {
                return VideoProtocol.H_263;
            }
            case H_264:
            {
                return VideoProtocol.H_264;
            }
            case H_264_HP:
            {
                return VideoProtocol.H_264_HP;
            }
            default:
            {
                return null;
            }
        }
    }
    
}
